import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'Employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'import',
      name: 'Import',
      component: () => import('@/views/employees/empImport.vue'),
      hidden: true, // 不显示到左侧菜单
      meta: { title: 'Excel 导入', icon: 'people' }
    },
    {
      // 使用动态路径传参,将来的路由必须匹配 /employees/datail/id值
      path: 'detail/:id',
      name: 'Detail',
      component: () => import('@/views/employees/empDetail.vue'),
      hidden: true, // 不显示到左侧菜单
      meta: { title: '员工详情', icon: 'people' }
    }
  ]
}
